package com.vietsanto.common.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by VIET on 1/2/2015.
 */
public class GroupActionController extends MultiActionController {
    public ModelAndView add(HttpServletRequest request,
                            HttpServletResponse response) throws Exception{
        return new ModelAndView("list","msg","add() method");
    }

    public ModelAndView delete(HttpServletRequest request,
                               HttpServletResponse response ) throws Exception{
        return new ModelAndView("list","msg","delete() method");
    }

    public ModelAndView update(HttpServletRequest request,
                               HttpServletResponse response ) throws Exception{
        return new ModelAndView("list","msg","update() method");
    }

    public ModelAndView list(HttpServletRequest request,
                             HttpServletResponse response ) throws Exception{
        return new ModelAndView("list","msg","list() method");
    }
}
